package com.atlin.project.service.task;

import com.atlin.project.model.domain.task.TaskSpaces;
import com.atlin.project.model.dto.taskSpaces.TaskSpacesQueryRequest;
import com.atlin.project.model.vo.TaskSpacesVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * @author atlin
 * @description taskSpaces
 * @createDate date
 */
public interface TaskSpacesService extends IService<TaskSpaces> {

    void valid(TaskSpaces taskSpaces, boolean add);

    /**
     * 获取封装
     *
     * @param taskSpaces
     * @param request
     * @return
     */
    TaskSpacesVO getTaskSpacesVO(TaskSpaces taskSpaces, HttpServletRequest request);


    /**
     * 获取查询条件
     *
     * @param questionQueryRequest
     * @return
     */
    QueryWrapper<TaskSpaces> getQueryWrapper(TaskSpacesQueryRequest questionQueryRequest);

    /**
     * 分页获取封装
     *
     * @param questionPage
     * @param request
     * @return
     */
    Page<TaskSpacesVO> getTaskSpacesVOPage(Page<TaskSpaces> questionPage, HttpServletRequest request);
}
